Skip to content

Clean up alert channel constructs and add back missing ones#233

Open
guolau wants to merge 15 commits intomainfrom
guolau/add-missing-cli-constructs
Open

Clean up alert channel constructs and add back missing ones#233
guolau wants to merge 15 commits intomainfrom
guolau/add-missing-cli-constructs

Conversation

@guolau
Copy link
Copy Markdown
Contributor

@guolau guolau commented Mar 25, 2026

Affected Components

  • Content & Marketing
  • Pricing
  • Test
  • Docs
  • Learn
  • Other

Summary of changes

This was a general cleanup of the alert channel construct pages, including adding back some pages that were missing. Old docs for reference

  • Add back missing CLI alert channel constructs: Pagerduty, Opsgenie, Incident.io, Telegram
  • Add back general AlertChannel info, mainly fromId().
  • Removed unverified/speculative/verbose AI-generated content from all alert channel construct pages
  • Removed the redundant "Alert Channel" part of the sidebar titles
  • We were providing a code example for every property, including ones that were so simple they didn't need it (like booleans and name properties). I removed the examples for simpler properties

@mintlify
Copy link
Copy Markdown
Contributor

mintlify bot commented Mar 25, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
checkly-422f444a 🟢 Ready View Preview Mar 25, 2026, 10:54 PM

@guolau guolau requested a review from ragog April 8, 2026 20:26
@guolau guolau marked this pull request as ready for review April 8, 2026 20:27
Copy link
Copy Markdown
Contributor

@ragog ragog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guolau I left a few comments, please review.

<AlertChannelOptionsTable />

Alert channels are assigned to checks, monitors, and groups by instantiating a class and adding the resulting object to the
`alertChannels` array.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guolau IMO a simple code example feels like it would be helpful here, for folks who might have landed here early on in the journey.

## Using `fromId()` to reference an existing channel

You can reference an existing alert channel in your Checkly account using the `fromId()` method on any `AlertChannel`
class. When your CLI project is responsible for creating and managing alert channels, it integrates seamlessly with Checkly's deployment control mechanisms. This ensures that any changes made are thoroughly validated.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guolau somehow I don't think this is hitting the nail on the head. Are we cautioning people against using fromId? What are the risks? When should it still be used?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to be more openly prescriptive here and direct folks to managing everything via CLI, spelling out exceptions clearly. The points are already on this page but maybe we can make this explanation shorter and sharper.


## Configuration

<Tabs>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guolau since we are at it, I don't think this tabbed section provides any value. It is entirely redundant to what comes afterwards, which is more readable and comprehensive anyway. Let's remove this from this and all other alert channel construct pages.

})
```

```ts Advanced Example
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guolau nit: would be nice if this could be collapsed as it takes up a large portion of the page.

],
})
```
The request body template, usually JSON. You can use [Handlebars-style template variables]((/integrations/alerts/webhooks#template-variables)) to add custom data to the template.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guolau this link is malformed and 404s currently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants